function getUpgrade(){
	var arr={
		account:SWJS.fValue('account'),
		password:SWJS.fValue('password')
	}
	return arr;
}

function upgrade(){
	var arrUpgrade=getUpgrade();
	SWJS.ajaxRequest('upgrade','upgrade',arrUpgrade,function(obj){
		if(obj.err==0){
			$('#step1').remove();
			$('#step2').show();
			SWJS.showMessage(obj.msg,obj.err);
		}else{
			SWJS.showMessage(obj.msg,obj.err);
		}
	});
}

$(function(){
		
	$('#upgrade').click(function(){
		upgrade();
	});
	
});